#include <stdio.h>

int main(int argc, char *argv[]) {

    double length = 0.00, high = 100.00;
    int n = 0;
    scanf("%d", &n);

    for (size_t i = 0; i < n; i++)
    {   
        //下落距离
        length += high;
        high /= 2;
        //回弹距离
        if(i!=n-1)
            length += high;
    }

    printf("length=%.4f\n", length);
    printf("high=%.4f\n", high);


    return 0;
}